package com.ydlclass;

import com.ydlclass.bootstrap.ServiceBootstrap;
import com.ydlclass.core.URL;
import com.ydlclass.registry.zk.ZookeeperRegistry;

/**
 * @author it楠老师
 * @createTime 2023-03-09
 */
public class Server {

    public static void main(String[] args) {
        URL url = new URL("zookeeper://127.0.0.1:2181");
        ServiceBootstrap.getInstance()
                .serviceName("yrpc-serve")
                .registry(new ZookeeperRegistry(url))
                .service(MyHello.class)
                .startup(8888);
    }
}
